<script type="text/javascript">
    function authenticateAdmin(){
        $.post(base_url+"admin/site/user_login",{
            username: $('#username').val(),
            password: $('#password').val()
        }, function(str){
            if(str=='succ'){ // is_admin
                window.location =base_url+'admin/';
            }else{
                alert('Login Admin Incorrect');
            }
        });
    }
</script>
<div id="content">
    <div class="post">
        <h2 class="title">Login Sebagai Administrator</h2>
        <div style="clear: both;">&nbsp;</div>
        <form method="post" action="javascript:" onsubmit="" enctype="multipart/form-data">
            <table>
                <tr><td>Username</td><td>:</td><td><input class="inputText" id="username" name="username" /></td></tr>
                <tr><td>Password</td><td>:</td><td><input class="inputText" type="password" id="password" name="password" /></td></tr>
            </table>
            <div class="submit">
                <input class="button" type="submit" value="Submit" onclick="authenticateAdmin()" />
            </div>
        </form>
    </div>
</div>